#encoding=utf8
'''
Created on Nov 10, 2014

@author: jingyang <jingyang@smalltreemedia.com>
'''
from django.template import Library

import settings

register = Library()


def custom_app_label(app_label):
    """
    custom app label name
    """
    return settings.APP_LABEL_LOCAL.get(app_label.lower(), app_label)
trans_app_label = register.filter(custom_app_label)
